{template 'common/header'}
<ul class="nav nav-tabs">

    <li><a href="{php echo $this->createWebUrl('shop')}">门店列表</a></li>

    <li><a href="{php echo $this->createWebUrl('shop_post')}">添加门店</a></li>

    <li class="active"><a href="{php echo $this->createWebUrl('hexiaolog')}">核销记录</a></li>

</ul>
<div class="panel panel-default">
        <div class="panel-heading">筛选</div>
        <div class="panel-body">
            <form action="" method="post" class="form-horizontal" role="form" id="form">
                <div class="form-group">
                    <div class="col-md-3 mathyts ">
                       <select name="shop_id" class="form-control form-control_s" >
                           <option value="" {if $info['shop_id']== ''}selected{/if}>所有门店</option>
                           {loop $shoplist $index $data}                           
                           <option value="{$data['id']}" {if $info['shop_id'] == $data['id']}selected{/if}>{$data['shopname']}</option>
                           {/loop}
                       </select>
                   </div>
                   <div class="col-md-2 mathyts" >
                       <select  name="order_status" class="form-control form-control_s" >                        
                           <option value="1" {if $order_status==1}selected{/if}>已核销</option>
                           <option value="2" {if $order_status==2}selected{/if}>未核销</option>
                       </select>
                    </div>
                    <!-- <label class="col-md-2 control-label">UID</label>
                    <div class="col-md-4">
                        <input type="text" class="form-control" name="keyword" id="keyword" value="{$keyword}">
                    </div> -->
                    <div class="col-md-2 mathyts" >
                       <select  name="aaa" class="form-control form-control_s" >                        
                           <option value="1" {if $aaa==1}selected{/if}>UID</option>
                           <option value="2" {if $aaa==2}selected{/if}>昵称</option>
                       </select>
                    </div>
                    <div class="col-md-3">
                        <input type="text" class="form-control" name="keyword" id="keyword" value="{$keyword}">
                    </div>
                    <div class="pull-right col-md-2">
                        <button type="submit" class="btn btn-default"><i class="fa fa-search"></i>搜索</button>
                    </div>
                </div>
            </form>
        </div>
        <div style="color: red !important;margin: 10px 100px;">拉黑功能说明1：如果发现用户多次恶意刷步，恶意兑换，可以采用拉黑功能！由于拉黑会突破微信代码，当移除黑名单无法获取微信步数属于正常情况，谨慎使用。

拉黑功能说明2：安卓手机用户拉黑之后，会出现闪退；苹果手机用户拉黑之后，会出现频繁跳转空白页面。是正常的拉黑状态</div>

    </div>
<div class="panel panel-default">
    <div class="panel-body">
       <form action="" method="post" class="form-horizontal form">
       <div class="alert alert-info url_div hide" role="alert">
       </div>
            <input type="hidden" name="storeid" value="">
            <div class="table-responsive panel-body">
                <table class="table table-hover">
                    <thead class="navbar-inner">
                    <tr>
                        <th>uid</th>
                        <th>用户名</th>
                        <th>头像</th>                       
                        <th>商品名</th>
                        <th>店铺名</th>
                        <th>店员uid</th>
                        <th>核销人员</th>
                        <th>兑换时间</th>
                        <th>核销时间</th>
                        <th>到期时间</th>
                        <th>核销状态</th>
                    </tr>
                    </thead>
                    <tbody id="level-list">
                    {loop $list $item}
                    <tr>
                         <td><div class="type-parent">{$item['user_id']}</div></td>
                         <td><div class="type-parent">{$item['nick_name']}</div></td>
                         <td><div class="type-parent"><img src="{php echo tomedia($item['head_pic']);}" width="50" height="50" /></div></td>
                         <td><div class="type-parent">{$item['goodsname']}</div></td>
                         <td><div class="type-parent">{$item['shopname']}</div></td>
                         <td><div class="type-parent">{$item['shop_userid']}</div></td>
                         <td><div class="type-parent">{$item['hexiaoyuan']}</div></td>
                         <td><div class="type-parent">{$item['time']}</div></td>
                         <td><div class="type-parent">{$item['hexiaotime']}</div></td>
                         <td><div class="type-parent">{$item['endtime']}</div></td>
                         <td>
                         
                         <div class="type-parent">
                         {if $item['type'] == 13}
                             <a class="btn btn-primary btn-sm" href="{php echo $this->createWebUrl('goodsinvitelog', array('id' => $item['id']))}">邀请记录</a>
                         {/if}
                            {if $item['hexiaostatus'] == 1}
                            <span class="label label-success">已核销</span>
                            {elseif $item['hexiaostatus'] == 2}
                            <span class="label label-default">已过期</span>
                            {else}
                            <span class="label label-default">未核销</span>
                            {/if}
                         </div>
                         </td>
                    </tr>
                    {/loop}
                    {if empty($list) }
	                <tr ng-if="!wechats">
	                <td colspan="11" class="text-center">暂无数据</td>
	                </tr>
	                {/if}
                    <tr>
                    <td colspan="11" style="text-align:right">{$page}</td>
                    </tr>     
                    </tbody>
                </table>  
            </div>
        </form>
    </div>
</div>
<style type="text/css">
    .hide{display: none}
</style>

{template 'common/footer'}